<?php

class Pipes_Value_Template_CamelCapsToDatabase 
{
    private $_value = '';

    public function __construct($projectName) {
        $this->_value = strtolower(preg_replace('/(.)([A-Z])/', '$1_$2', $projectName));
    }

    public function __get($key) {
        if ($key == 'value') {
            return $this->_value;
        }
    }

    public function __toString() {
        return $this->value;
    }
}
